<?php 
//R::debug(true);
$parentId="NULL";
$category=R::findOne("portal_pages", "parentId = ? and portalId = ? ",array(getParameter("parentId"),$portalId));

if ($category){
$category=R::findOne("portal_pages", "id = ? and portalId = ? ",array($category->id,$portalId));

$category=R::findOne("portal_pages", "id = ? and portalId = ? ",array($category->parentId,$portalId));


$parentId=$category->parentId;
if ($parentId=="") $parentId="NULL";
}

?>
<a  href="<?php echo createCleanUrl("filter","parentId=".$parentId); ?>"><img src="./images/up.png" width="32"></a>
